import { observable, action } from 'mobx'

class store {
    @observable globalData = {
          wxIsAuth: false,
          userInfo: {},
          loginInfo: {},
          loadingActive: false,
          tokenVer: '',
          loginToken: '',
          accessToken: '',
    }

    @action setGlobalData = (key, value) => {
        this.globalData[key] = value
    }
}

export default new store()
